﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>某某家具设计公司企业官网-模板之家</title>﻿
</head>
<body>
	<!-- 引入头部 -->
	<jsp:include page="header.jsp"></jsp:include>

	<div>
		<!-- 类型开始 -->
		<header class="header-article-list">
			<div class="article-position">新闻资讯</div>
			<ul>
				<c:forEach items="${newsTypeList}" var="type">
					<li><a
						href="NewsServlet?method=getNewsByType&typeId=${type.id }">
							${type.name} </a></li>
				</c:forEach>
			</ul>
			<div class="article-more-btn">
				<a href="NewsServlet?method=toMore">MORE &#62; &#62;</a>
			</div>
		</header>
		<!-- 类型结束 -->
		<!--  -->
		<section class="article-content">
			<ul>
				<c:forEach items="${newsList }" var="news">
					<li>
						<div class="article-date">
							<p>${news.time}</p>
						</div>
						<div class="article-info">
							<a href="NewsServlet?method=toArticleListContent&id=${news.id }">
								<h3>${news.title }</h3>
								<p>${news.content}</p>
							</a>
						</div>
					</li>
				</c:forEach>

			</ul>

		</section>
	</div>
	<!-- 引入脚部 -->
	<jsp:include page="footer.jsp"></jsp:include>﻿
</body>
</html>